package com.ruoyi.schoolSys.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 请假管理对象 ask_leave
 * 
 * @author ruoyi
 * @date 2024-02-19
 */
public class AskLeave extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    @Excel(name = "")
    private Long id;

    /** 学生id */
    @Excel(name = "学生id")
    private Long studentId;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 请假类型（病假、事假） */
    @Excel(name = "请假类型", readConverterExp = "病=假、事假")
    private String leaveType;

    /** 请假缘由 */
    @Excel(name = "请假缘由")
    private String sause;

    /** 申请人id */
    @Excel(name = "申请人id")
    private Long proposerId;

    /** 审批状态 */
    @Excel(name = "审批状态")
    private Integer approveState;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyTime;

    /** 审批时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date approveTime;

    /** 审核退回理由 */
    @Excel(name = "审核退回理由")
    private String backSause;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }
    public void setBeginTime(Date beginTime) 
    {
        this.beginTime = beginTime;
    }

    public Date getBeginTime() 
    {
        return beginTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setLeaveType(String leaveType) 
    {
        this.leaveType = leaveType;
    }

    public String getLeaveType() 
    {
        return leaveType;
    }
    public void setSause(String sause) 
    {
        this.sause = sause;
    }

    public String getSause() 
    {
        return sause;
    }
    public void setProposerId(Long proposerId) 
    {
        this.proposerId = proposerId;
    }

    public Long getProposerId() 
    {
        return proposerId;
    }
    public void setApproveState(Integer approveState) 
    {
        this.approveState = approveState;
    }

    public Integer getApproveState() 
    {
        return approveState;
    }
    public void setApplyTime(Date applyTime) 
    {
        this.applyTime = applyTime;
    }

    public Date getApplyTime() 
    {
        return applyTime;
    }
    public void setApproveTime(Date approveTime) 
    {
        this.approveTime = approveTime;
    }

    public Date getApproveTime() 
    {
        return approveTime;
    }
    public void setBackSause(String backSause) 
    {
        this.backSause = backSause;
    }

    public String getBackSause() 
    {
        return backSause;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("studentId", getStudentId())
            .append("beginTime", getBeginTime())
            .append("endTime", getEndTime())
            .append("leaveType", getLeaveType())
            .append("sause", getSause())
            .append("proposerId", getProposerId())
            .append("approveState", getApproveState())
            .append("applyTime", getApplyTime())
            .append("approveTime", getApproveTime())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("backSause", getBackSause())
            .toString();
    }
}
